package org.wlgzs.office_exam_student.entity;

import java.sql.Timestamp;

/**
 * @author jxy
 * 用户实体类
 */
public class User {
    private int id;
    private String username;//用户名
    private String name;//姓名
    private String password;//密码
    private String phone;//手机号
    private int roleId;//角色id
    private String role;//角色
    private int schoolId;//学校id
    private String school;//学校名称
    private String schoolAbbreviation;//学校简称
    private int classesId;//班级id
    private String classes;//班级名称
    private int num;//学校或班级账号数
    private int lastNum;//学校剩余账号数
    private Timestamp startTime;//开始时间（账号有效期）
    private Timestamp endTime;//结束时间

	private Timestamp loginTime;//最后一次登录时间


	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public int getRoleId() {
		return roleId;
	}
	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}
	public String getRole() {
		return role;
	}
	public void setRole(String role) {
		this.role = role;
	}
	public int getSchoolId() {
		return schoolId;
	}
	public void setSchoolId(int schoolId) {
		this.schoolId = schoolId;
	}
	public String getSchool() {
		return school;
	}
	public void setSchool(String school) {
		this.school = school;
	}
	public String getSchoolAbbreviation() {
		return schoolAbbreviation;
	}
	public void setSchoolAbbreviation(String schoolAbbreviation) {
		this.schoolAbbreviation = schoolAbbreviation;
	}
	public int getClassesId() {
		return classesId;
	}
	public void setClassesId(int classesId) {
		this.classesId = classesId;
	}
	public String getClasses() {
		return classes;
	}
	public void setClasses(String classes) {
		this.classes = classes;
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	public int getLastNum() {
		return lastNum;
	}
	public void setLastNum(int lastNum) {
		this.lastNum = lastNum;
	}
	public Timestamp getStartTime() {
		return startTime;
	}
	public void setStartTime(Timestamp startTime) {
		this.startTime = startTime;
	}
	public Timestamp getEndTime() {
		return endTime;
	}
	public void setEndTime(Timestamp endTime) {
		this.endTime = endTime;
	}
	public Timestamp getLoginTime() {
		return loginTime;
	}
	public void setLoginTime(Timestamp loginTime) {
		this.loginTime = loginTime;
	}
	@Override
	public String toString() {
		return "User [id=" + id + ", username=" + username + ", name=" + name + ", password=" + password + ", phone="
				+ phone + ", roleId=" + roleId + ", role=" + role + ", schoolId=" + schoolId + ", school=" + school
				+ ", schoolAbbreviation=" + schoolAbbreviation + ", classesId=" + classesId + ", classes=" + classes
				+ ", num=" + num + ", lastNum=" + lastNum + ", startTime=" + startTime + ", endTime=" + endTime
				+ ", loginTime=" + loginTime + "]";
	}
    

}
